#define  _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>

int main()
{
    char a[110] = { 0 };

    scanf("%s", a);

    char* ch = a;

    while (*ch)
    {
        for (int i = 0; i < 8; i++)
        {
            if (*(ch + i) != 0)
            {
                printf("%c", *(ch + i));
            }
            else
            {
                printf("0");
            }
        }
        printf("\n");
        ch += 8;
    }

    return 0;
}